home *** CD-ROM | disk | FTP | other *** search
/ Champak 138 / Volume 138 Aug 19 2011 - Damaged.iso / Games / shadez.swf / scripts / Local / Game / Thing / CPeepAK47.as < prev    next >
Encoding:
Text File  |  2011-08-19  |  1.3 KB  |  46 lines

  1. package Local.Game.Thing
  2. {
  3.    import Local.Game.World.CPosition;
  4.    
  5.    public class CPeepAK47 extends CPeep
  6.    {
  7.        
  8.       
  9.       public function CPeepAK47(param1:CPosition)
  10.       {
  11.          super(param1);
  12.          mType = "peepak47";
  13.          ┬º┬ºpush(┬º┬ºfindproperty(mMaxSpeed));
  14.          ┬º┬ºpush(4.5);
  15.          if(true)
  16.          {
  17.             ┬º┬ºpush((┬º┬ºpop() + Math.random()) * mSpriteScalar);
  18.          }
  19.          ┬º┬ºpop().mMaxSpeed = ┬º┬ºpop();
  20.          mSpeed = 0;
  21.          Process = Process_Normal;
  22.          mOrientation = -1;
  23.          SetTargetting(400 - Math.random() * 100,false,FILTER_GroundTargets,true,50);
  24.          CSpriteFrame.mFlipX = true;
  25.          AddAnimation("run",AK47_Run,"AddSprite_Black",false);
  26.          AddAnimation("standaim",AK47_Stand_Aim,"AddSprite_Black",true);
  27.          AddAnimation("crouchaim",AK47_Crouch_Aim,"AddSprite_Black",true);
  28.          CSpriteFrame.mFlipX = false;
  29.          mAnimationFrame = Math.random();
  30.          AddThing(mPrimaryWeapon = new CWeaponAK47());
  31.          SetState("GOTO");
  32.          IncrementBuild();
  33.       }
  34.       
  35.       override public function get mPrize() : int
  36.       {
  37.          return CPeepM16.mCost * 2;
  38.       }
  39.       
  40.       override public function get mBaseDamage() : Number
  41.       {
  42.          return 50;
  43.       }
  44.    }
  45. }
  46.